package com.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 * @TableName trade
 */
@TableName(value ="trade")
@Data
public class Trade implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 删除标志
     */
    @TableField(value = "delete_flag")
    private Boolean deleteFlag;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 收货人姓名
     */
    @TableField(value = "receiver_name")
    private String receiverName;

    /**
     * 收货人电话
     */
    @TableField(value = "receiver_phone")
    private String receiverPhone;

    /**
     * 省份/直辖市
     */
    @TableField(value = "receiver_province")
    private String receiverProvince;

    /**
     * 城市
     */
    @TableField(value = "receiver_city")
    private String receiverCity;

    /**
     * 区
     */
    @TableField(value = "receiver_region")
    private String receiverRegion;

    /**
     * 详细地址
     */
    @TableField(value = "receiver_detail_address")
    private String receiverDetailAddress;

    /**
     * 优惠的金额
     */
    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    /**
     * 总价格
     */
    @TableField(value = "flow_price")
    private BigDecimal flowPrice;

    /**
     * 运费
     */
    @TableField(value = "freight_price")
    private BigDecimal freightPrice;

    /**
     * 原价
     */
    @TableField(value = "goods_price")
    private BigDecimal goodsPrice;

    /**
     * 买家id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 买家用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 支付方式
     */
    @TableField(value = "payment_method")
    private String paymentMethod;

    /**
     * 交易编号
     */
    @TableField(value = "sn")
    private String sn;

    /**
     * 
     */
    @TableField(value = "pay_status")
    private String payStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}